import React from "react"

const Component = (props)=>{
  const handleClick = ()=>{
    console.log("1111")
    props.handleName("子组件传值")
  }
  return (
    <>  
      <div>this is childrenComponent</div>
      <h2 onClick={handleClick}>这是父组件中传递的值 {props.name}</h2>
      <h2>兄弟组件接收的参数为 {props.num}</h2>
    </>
  )

}

export  default Component
